#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
void reverse(char* arr, int right)
{
    int left = 0;
    while (left <= right)
    {
        char tmp = arr[left];
        arr[left] = arr[right];
        arr[right] = tmp;
        left++;
        right--;
    }
}
int main()
{
    char str[10000];    
    gets(str);
    int right = strlen(str)-1;
    reverse(&str, right);
    puts(str);
    return 0;
}
